#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

void Test1()
{
	Heap h;
	HeapCreate(&h);
	int arr[10] = { 9, 22, 88 ,2, 3,4,4,7,78,79 };
	int len = sizeof(arr) / sizeof(int);
	for (int i = 0; i < len; i++)
	{
		HeapPush(&h, arr[i]);
	}
	while (!HeapEmpty (&h))
	{
		int top = HeapTop(&h);
		printf("%d ", top);
		HeapPop(&h);
	}

}
int main()
{
	Test1();
	//TestTopk();
	//PrintTopK("data.txt", 10);
	return 0;
}